package case10;

public class ThreadDemo {
    public static void main(String[] args) {
        //创建线程对象
        Cook c = new Cook();
        Foodie f = new Foodie();
        c.setName("吃货");
        f.setName("厨师");
        c.start();
        f.start();
    }
}
